package com.zy.explore.sys.domain.mybatis.entity;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 站内信内容表(表station_msg)ORM实体对象
 *
 * @author ZY
 * @date 2021-05-30 21:01:53
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "station_msg")
public class StationMsg {

    /**
     * 主键ID
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY, generator = "JDBC")
    private Long id;

    /**
     * 优先级：1.普通 2.重要 3.紧急
     */
    private Integer priority;

    /**
     * 消息标题
     */
    private String title;

    /**
     * 消息类型：1.系统公告 2.系统通知
     */
    private Integer msgType;

    /**
     * 站内信内容
     */
    private String msgContent;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

}